<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
{% for book in books %}
    <div>书名：{{ book.name }}</div>
    <div>价格：{{ book.price }}</div>
{% endfor %}

<div></div>
</body>
</html>